﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageUser.master" AutoEventWireup="true" CodeFile="Dang_ky.aspx.cs" Inherits="Dang_ky" Title="Đăng ký thành viên" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style5
        {
            font-size: 10pt;
            font-weight: bold;
        }
        .style6
        {
            color: #FF9900;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="4" class="style3" 
        
        style="border: 1px solid #C0C0C0; width: 100%; " 
        align="center">
    <tr>
        <td align="center" colspan="2" 
            
            style="background-color: #FF9933; font-family: arial, Helvetica, sans-serif; color: #FFFFFF; height: 20px; width: 620px;" 
            class="style5">
            Đăng ký tài khoản</td>
    </tr>
    <tr>
        <td align="left" colspan="2" style="color: #0066FF; width: 620px;">
            Để tạo tài khoản bạn cần điền đầy đủ các thông tin sau:</td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Tên đăng nhập</td>
        <td>
            <asp:TextBox ID="txttendangnhap" runat="server" Width="239px" 
                ontextchanged="txttendangnhap_TextChanged"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txttendangnhap" ErrorMessage="Không được bỏ trống">*</asp:RequiredFieldValidator>
            <asp:Label ID="lblkiemtrauser" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Mật khẩu
        </td>
        <td>
            <asp:TextBox ID="txtmatkhau" runat="server" Width="239px" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtmatkhau" ErrorMessage="Không được bỏ trống">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Nhập lại mật khẩu</td>
        <td>
            <asp:TextBox ID="txtnhaplaimatkhau" runat="server" 
                Width="239px" TextMode="Password"></asp:TextBox>
            &nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtmatkhau" ControlToValidate="txtnhaplaimatkhau" 
                ErrorMessage="Không trung mật khẩu">*</asp:CompareValidator></td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Email</td>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" Width="239px"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="không đúng định dạng email" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Nhập lại Email</td>
        <td>
            <asp:TextBox ID="txtnhaplaiemail" runat="server" Width="239px"></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator2" runat="server" 
                ControlToCompare="txtEmail" ControlToValidate="txtnhaplaiemail" 
                ErrorMessage="Không trùng email">*</asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td align="center" colspan="2" class="style6">
            &nbsp;</td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Họ và tên
        </td>
        <td>
            <asp:TextBox ID="txthovaten" runat="server" Width="239px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txthovaten" ErrorMessage="Không được bỏ trống">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Số CMND</td>
        <td>
            <asp:TextBox ID="txtcmnd" runat="server" Width="239px"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="txtcmnd" ErrorMessage="CMND phải có 9 số" 
                ValidationExpression="[0-9]{9}">*</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Ngày Sinh</td>
        <td>
            <asp:TextBox ID="txtngaysinh" runat="server" Width="239px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Điện thoại
        </td>
        <td>
            <asp:TextBox ID="txtdienthoai" runat="server" Width="239px"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                ControlToValidate="txtdienthoai" ErrorMessage="Số điện thoại không đúng" 
                ValidationExpression="[0-9]{9}">*</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td align="center" colspan="2" class="style6">
            &nbsp;</td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Địa Chỉ nhận hàng</td>
        <td>
            <asp:TextBox ID="txtdiachinhanhang" runat="server" Height="96px" 
                TextMode="MultiLine" Width="239px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtdiachinhanhang" ErrorMessage="không được bỏ trống">*</asp:RequiredFieldValidator>
            <br />
        </td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Tỉnh/Tp</td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server" Width="240px">
                <asp:ListItem>Cần Thơ</asp:ListItem>
                <asp:ListItem>HCM</asp:ListItem>
                <asp:ListItem>Vĩnh long</asp:ListItem>
                <asp:ListItem>Hậu Giang</asp:ListItem>
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
            <br />
        </td>
    </tr>
    <tr>
        <td align="right" class="style6" style="color: #0066FF">
            Thông tin thêm</td>
        <td>
            <asp:TextBox ID="txtthongtinthem" runat="server" Height="128px" 
                TextMode="MultiLine" Width="239px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;</td>
        <td>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnDangKy" runat="server" onclick="btnDangKy_Click" 
                Text="Đăng Ký" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnKhong" runat="server" Text="Không" 
                onclick="btnKhong_Click" />
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;</td>
        <td>
            <asp:Label ID="lblErr" runat="server" ForeColor="Red"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;</td>
        <td>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
        </td>
    </tr>
</table>
</asp:Content>

